package com.wjq.entity;

import lombok.Data;

@Data

public class Question implements Comparable<Question> {


    public Integer serialNum;

    public Question(){
    }

    public Question(Integer serial_num){
        super();
        this.serialNum = serial_num;
    }

    @Override
    public int compareTo(Question o) {
        int compare = this.getSerialNum() - o.getSerialNum();
        if(compare == 0) return 0;
        else if(compare > 0) return 1;
        else return -1;
    }
}
